package com.atguigu.gmall.payment.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/***
 * 微信支付feign调用客户端
 */
@FeignClient(name = "service-payment",path = "/wx/pay",contextId = "WxPayFeignClient")
public interface WxPayFeignClient {

    /**
     * 获取支付地址（二维码）
     *
     * @param body
     * @param orderId
     * @param amount
     * @return
     */
    @GetMapping
    public String getPayUrl(@RequestParam String body,
                         @RequestParam String orderId,
                         @RequestParam String amount);
}
